<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<nav class="navbar navbar-default top-navbar" role="navigation">
    <div class="navbar-header">
        <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".sidebar-collapse">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
        </button>
        <a class="navbar-brand" href="/indexManage/index">EasilyJ - 管理</a>
    </div>

    <ul class="nav navbar-top-links navbar-right">
        <li class="dropdown">
            <a class="dropdown-toggle" data-toggle="dropdown" href="#" aria-expanded="false">
                登录：${currentUser.userName} <i class="fa fa-user fa-fw"></i> <i class="fa fa-caret-down"></i>
            </a>
            <ul class="dropdown-menu dropdown-user">
                <li>
                    <a href="#"><i class="fa fa-user fa-fw"></i> 设置</a>
                </li>
                <li>
                    <a href="/login"><i class="fa fa-gear fa-fw"></i> 切换账号</a>
                </li>
                <li class="divider"></li>
                <li>
                    <a href="/logout"><i class="fa fa-sign-out fa-fw"></i> 退出登录</a>
                </li>
            </ul>
            <!-- /.dropdown-user -->
        </li>
        <!-- /.dropdown -->
    </ul>
</nav>
<!--/. NAV TOP  -->
<nav class="navbar-default navbar-side" role="navigation">
    <div id="sideNav" href=""><i class="fa fa-caret-right"></i></div>
    <div class="sidebar-collapse">
        <ul class="nav" id="main-menu">

            <li>
                <a href="/"><i class="fa fa-dashboard"></i> 首页</a>
            </li>
            <li>
                <a href="/indexManage/index"><i class="fa fa-dashboard"></i> 控制台</a>
            </li>
            <li>
                <a href="/articleManage/addArticle"><i class="fa fa-desktop"></i> 发布文章</a>
            </li>
            <li>
                <a href="/articleManage/articleList"><i class="fa fa-bar-chart-o"></i> 文章管理</a>
            </li>
            <shiro:hasRole name="admin">
                <li>
                    <a href="/articleCategoryManage/articleCategoryListByFirst"><i class="fa fa-qrcode"></i> 分类管理</a>
                </li>
                <li>
                    <a href="/friendChainManage/friendChainList"><i class="fa fa-table"></i> 友链管理</a>
                </li>
                <li>
                    <a href="/stayWordManage/stayWordList"><i class="fa fa-clock-o"></i> 留言管理</a>
                </li>
            </shiro:hasRole>
            <shiro:hasRole name="administrator">
                <li>
                    <a href="/adminManage/adminList"><i class="fa fa-key"></i> 权限管理</a>
                </li>
            </shiro:hasRole>
        </ul>

    </div>

</nav>
<!-- /. NAV SIDE  -->